//
//  Pay_Submit_TCell.swift
//  MikerShop
//
//  Created by eme on 2016/12/24.
//  Copyright © 2016年 eme. All rights reserved.
//

/*
 owner:cy
 update:2016年12月24日18:43:00
 info: 确认付款
 */
import UIKit
import RxSwift

class Pay_Submit_TCell: UITableViewCell {
    
    @IBOutlet weak var submit_Btn: UIButton!
    
    var submit_Closure:((Void)-> Bool)?
    
    private let disposeBag = DisposeBag()
    
    override func awakeFromNib() {
        self.submit_Btn
            .rx.tap
            .subscribe(onNext: { [unowned self] ( _ ) in
                
                if let submit_Closure = self.submit_Closure{
                    self.submit_Btn.isEnabled = submit_Closure()
                }
            })
            .disposed(by: disposeBag)
    }
}
